import Vue from 'vue';
import App from './App';
import Base64 from 'base-64';
// 弹出框
import DialogBox from './components/DialogBox/DialogBox';
Vue.config.productionTip = false
// 全局组件
Vue.component('DialogBox', DialogBox);
//mescroll
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)
Vue.prototype.checkLogin  = function(){
	var UID    = uni.getStorageSync('UID');
	var MOBILE = uni.getStorageSync('MOBILE');
	var TOKEN  = uni.getStorageSync('TOKEN');
	if(UID == '' || MOBILE == '' || TOKEN == ''){
		uni.reLaunch({url: '/pages/login/login'});
		return false;
	}
	return [UID, MOBILE, TOKEN];
}
Vue.prototype.appToken  = '9e37e0c6940927d669118b7ed67b237d';//APP通信秘钥
Vue.prototype.appSerip  = '192.168.3.56';//服务器IP地址
Vue.prototype.apiServer = 'http://free.svipss.top:49052';//通讯地址
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
